unit Mng_WarnMsgEidtUnit;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Mask, RzEdit, ExtCtrls, RzPanel, RzButton;

type
  TMng_WarnMsgEidtForm = class(TForm)
    rzgrpbx_1: TRzGroupBox;
    btn_OK: TRzBitBtn;
    btn_Exit: TRzBitBtn;
    edt_Msg: TRzEdit;
    procedure edt_SjzhChange(Sender: TObject);
    procedure btn_ExitClick(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure btn_OKClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

implementation
uses Mng_DataUnit;
{$R *.dfm}

procedure TMng_WarnMsgEidtForm.edt_SjzhChange(Sender: TObject);
begin
  btn_OK.Enabled := (edt_Msg.Text<>'');
end;

procedure TMng_WarnMsgEidtForm.btn_ExitClick(Sender: TObject);
begin
  Close;
end;

procedure TMng_WarnMsgEidtForm.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  Action := caFree;
end;

procedure TMng_WarnMsgEidtForm.btn_OKClick(Sender: TObject);
begin
  WantToSendMessage := edt_Msg.Text;
end;

end.
